package cn.interestingshop.dao;

import cn.interestingshop.model.entity.Notice;
import cn.interestingshop.service.NoticeService;
import cn.interestingshop.service.NoticeServiceImpl;

import java.util.List;

public class test {
    public static void main(String[] args) {
        NoticeService service = new NoticeServiceImpl();
        List<Notice> list = service.getNotice();
        for (Notice notice : list) {
            System.out.println(
                    notice.getTitle()
            );
        }
    }
}